﻿@using PagedList.Mvc;
@{
    PagedList.IPagedList<Model.AntiFake.QueryCodeLogModel> myPageList = (PagedList.IPagedList<Model.AntiFake.QueryCodeLogModel>)ViewBag.MyPageList;
    Layout = "~/Views/Shared/MyLayOutNew.cshtml";
}
<link href="~/Content/PagedList.css" rel="stylesheet" />
<main class="main-cont content mCustomScrollbar">
    <div class="page-wrap">
        <!--开始::内容-->
        <section class="page-hd">
            <header>
                <h2 class="title">数据统计>>防伪查询统计</h2>
              
            </header>
            <hr>
        </section>
        <table class="table mb-15">
            <thead>
                <tr>
                    <th><input type="checkbox" /></th>
                    <th>防伪码</th>
                    <th>查询方式</th>
                    <th>查询值</th>
                    <th>查询时间</th>
                    <th>省份</th>
                    <th>城市</th>
                    <th>所属机构</th>
                </tr>
            </thead>
            <tbody>

                @foreach (var item in myPageList)
                {
                    <tr class="cen">
                        <td><input type="checkbox" /></td>
                        <td>
                            @Html.DisplayFor(modelItem => item.Fw_Code)

                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.QueryType)
                        </td>
                      
                        <td>
                            @Html.DisplayFor(modelItem => item.QueryValue)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.QueryTime)
                        </td>


                        <td>
                            @Html.DisplayFor(modelItem => item.QueryProvince)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.QueryCity)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.EnterpriseName)
                        </td>
                      
                    </tr>
                }

            </tbody>
        </table>
        每页 @myPageList.PageSize 条记录，共 @myPageList.PageCount 页，当前第 @myPageList.PageNumber 页
        @Html.PagedListPager(myPageList, page => Url.Action("Index", new { page }))
        <!--开始::结束-->
    </div>
</main>
 

